﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace mscook.core.domain
{
    public class PurchasedThingMap : ClassMap<PurchasedThing>
    {
        public PurchasedThingMap()
        {
            Id(o => o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);

            Map(o => o.RelatedId);
            Map(o => o.Title);
            Map(o => o.PurchasedCategory).CustomType<mscook.core.domain.PurchasedCategory>();
            References<LoginUser>(o => o.LoginUser).Column("LoginUserId");
        }

    }
}
